home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 10
/
Amoszine 10 (Disk 3 of 3).adf
/
Text_Files.lha
/
pp_lib_amos.txt2
< prev
next >
Wrap
Text File
|
1995-12-11
|
2KB
|
60 lines
Hi Paul,
Thanks very much for taking the time to write me such a well commented,
helpful program as well as the info from the autodoc!
It took a bit of getting at since I don't have uuencode: I had to put
it on a PC disk using crossdos, take it to uni and forward it to myself
via internet email so I could then extract the file using a function in
the mail reader! :)
I've been trying to figure out how to write the crunched file.
I'll show you what I've come up with after looking in some books - I've
never written files using doslibrary!
1) Use Open() to open the file:
Dreg(1)=Varptr(FILENAME$)
Dreg(2)=1006 : Rem MODE_NEW
FILEHANDLE=Doscall(-30)
2) Call ppWriteDataHeader
See below:
3) Use Write() to write the crunched data:
Dreg(1)=FILEHANDLE
Dreg(2)=BUF
Dreg(3)=NEWSIZ
D0=Doscall(-48)
4) Use Close() to close the file:
Dreg(1)=FILEHANDLE
D0=Doscall(-36)
Step 2 is where I'm stuck.
The info you gave me was
success = ppWriteDataHeader ( lock , efficiency , crypt , checksum );
ULONG BPTR ULONG BOOL ULONG
D0 D0 D1 D2 D3:16
_LVOppWriteDataHeader = -114
The problem is I've no idea what to load the registers with.
Guess-time:
Do I by any chance load D0 with the filehandle?
Presumably efficiency is the same as it is in the other routines?
Do I load D2 with 0 since no encryption has been used?
Also,
What do BPTR and :16 mean?
Sorry for asking you yet more questions!
Thanks again for your help.
Regards,
/|
/_| FidoNet: 2:250/102
/ |ndrew. InterNet: mmmr3acj@fs2.scg.man.ac.uk